package com.system.template.core.pdf;

/**
 * pdf的水印对象
 * @author yuejing
 * @date 2019年4月29日 下午2:22:10
 */
public class PdfWatermark {

	// 盖章类型[0普通、1骑缝章]
	private Integer type;
	// 水印路径
	private String path;
	private Float width;
	private Float height;
	private float absoluteX = 100;
	private float absoluteY = 100;

	/**
	 * 
	 * @param type	盖章类型[0普通、1骑缝章]
	 * @param path
	 */
	public PdfWatermark(Integer type, String path) {
		super();
		this.type = type;
		this.path = path;
	}
	/**
	 * 类型为骑缝章时，图片大小参数失效。
	 * @param type			盖章类型[0普通、1骑缝章]
	 * @param path
	 * @param width
	 * @param height
	 * @param absoluteX
	 * @param absoluteY
	 */
	public PdfWatermark(Integer type, String path, Float width, Float height, float absoluteX, float absoluteY) {
		super();
		this.type = type;
		this.path = path;
		this.width = width;
		this.height = height;
		this.absoluteX = absoluteX;
		this.absoluteY = absoluteY;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public float getAbsoluteX() {
		return absoluteX;
	}
	public void setAbsoluteX(float absoluteX) {
		this.absoluteX = absoluteX;
	}
	public float getAbsoluteY() {
		return absoluteY;
	}
	public void setAbsoluteY(float absoluteY) {
		this.absoluteY = absoluteY;
	}
	/**
	 * 盖章类型[0普通、1骑缝章]
	 * @return
	 */
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public Float getWidth() {
		return width;
	}
	public void setWidth(Float width) {
		this.width = width;
	}
	public Float getHeight() {
		return height;
	}
	public void setHeight(Float height) {
		this.height = height;
	}
}